package com.adinnet.common.utils;

import java.util.Properties;


public class PropertiesConfig {

    static final Properties CONFIG = PropertyReader.getProperties("/config/config.properties");

    // public static String weiXinAppId = CONFIG.getProperty("weiXin.appId");

    public static String weiXinMchId = CONFIG.getProperty("weiXin.mchId");

    public static String weiXinBody = CONFIG.getProperty("weiXin.weiXinBody");

    public static String weiXinNotifyUrl = CONFIG.getProperty("weiXin.weiXinNotifyUrl");

    public static String weiXinUnifiedOrderUrl = CONFIG.getProperty("weiXin.unifiedOrderUrl");
    
    public static String weiXinPartnerKey = CONFIG.getProperty("weiXin.weiXinPartnerKey");

    //微信模板消息推送地址
    public static String weiXinSendMsgUrl = CONFIG.getProperty("weiXin.weiXinSendMsgUrl");
    public static String weiXinGetTokenUrl = CONFIG.getProperty("weiXin.weiXinGetTokenUrl");
    public static String weiXinSmallProgramId = CONFIG.getProperty("weiXin.weiXinSmallProgramId");
    public static String weiXinSmallSecret = CONFIG.getProperty("weiXin.weiXinSmallSecret");
    // public static String appSecret = CONFIG.getProperty("weiXin.appSecret");
    public static String getOpenIdUrl = CONFIG.getProperty("weiXin.getOpenIdUrl");

    public static String orderNotice = CONFIG.getProperty("weiXin.orderNotice");//
    public static String orderSuccess = CONFIG.getProperty("weiXin.orderSuccess");//
    public static String orderCancel = CONFIG.getProperty("weiXin.orderCancel");//
    
    public static String weiXinCert = CONFIG.getProperty("weiXin.weiXinCert");//微信双向证书
    public static String weiXinRefundUrl = CONFIG.getProperty("weiXin.refundUrl");
    public static String wXRefundAsync = CONFIG.getProperty("weiXin.wXRefundAsync");
    public static String weiXinVipPayCallBack = CONFIG.getProperty("weiXin.vipPayCallBack");

    public static String chuanglanSendMsgAccount = CONFIG.getProperty("chuanglan.sendMsg.account");
    public static String chuanglanSendMsgPassword = CONFIG.getProperty("chuanglan.sendMsg.password");
    public static String chuanglanSendMsgUrl = CONFIG.getProperty("chuanglan.sendMsg.url");
    public static String chuanglanSendMsgSignature = CONFIG.getProperty("chuanglan.sendMsg.signature");

    public static String pushAppKey = CONFIG.getProperty("push.appKey");
    public static String pushSecret = CONFIG.getProperty("push.appSecret");

    public static String getValue(String key) {
        return CONFIG.getProperty(key);
    }

}
